import sqlalchemy
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, Date
from sqlalchemy.orm import sessionmaker
engine = create_engine('sqlite:///news.sqlite')
Base = declarative_base()
Session = sessionmaker(bind=engine)
session = Session()
class NEWS(Base):
    __tablename__ = 'news'
    id = Column(Integer,primary_key=True)
    title = Column(String)
    images = Column(String)
    date = Column(Date)
if __name__ == '__main__':
    Base.metadata.create_all(engine)